package com.room.room.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.utils.PageUtils;
import com.project.utils.Query;

import com.room.room.dao.HouseRentDao;
import com.room.room.entity.HouseRentEntity;
import com.room.room.service.HouseRentService;


@Service("houseRentService")
public class HouseRentServiceImpl extends ServiceImpl<HouseRentDao, HouseRentEntity> implements HouseRentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseRentEntity> page = this.page(
                new Query<HouseRentEntity>().getPage(params),
                new QueryWrapper<HouseRentEntity>()
        );

        return new PageUtils(page);
    }

}